/**
 * CS490 Fall 2007
 * Created on Dec 2, 2007
 * Name: Carinna Parker
 * Username: crpyq9
 * @filename ButtonFactory.java
 */
 package StratelegoGame;

import java.awt.event.ActionListener;

import javax.swing.JButton;
 public class ButtonFactory {
	 
	 
	 	private ButtonFactory(){}
	 	
	 	public static JButton createButton(String text, ActionListener listener)
	 	{
	 		JButton button = new JButton(text);
	 		button.addActionListener(listener);
	 		return button;
	 	}	
}




